package com.bh.shipment.vo;

import com.bh.common.annotation.Dict;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.DictLabelVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 运单管理对象 jc_shipment
 *
 * @author slx
 * @date 2023-04-22
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class JcShipmentSysApiVO extends DictLabelVo {

    private Long id;

    private Integer status;

    private String code;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @Excel(name = "运单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    @Excel(name = "外部车牌号")
    private String license;

    /**
     * 起运站ID
     */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    private Long jcFromOrganizationId;

    /**
     * 当前站ID
     */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    private Long jcNowOrganizationId;

    /**
     * 下一站ID
     */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    private Long jcNextOrganizationId;

    /**
     * 目的站ID
     */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    private Long jcToOrganizationId;

    /**
     * 经由站组织机构IDS
     */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id", dictAlias = "orgnameList")
    private String orgIds;

    /**
     * 途径站显示
     */
    private String orgnameList;

    /**
     * 装车照片
     */
    private String imgUrls;
    /**
     * 外部司机名称
     */
    private String outDriver;
}
